/*
 * mystdlib.h
 *
 *  Created on: Sep 4, 2013
 *      Author: Ken Arok
 *
 *      Revision history:
 *      ---------------------------------------------------------
 *      Date			|	Revised by		|	Description
 *      ---------------------------------------------------------
 *      1. Sep 4, 2013	|	Yosef			| New establishment
 *
 *
 *
 * \file
 *
 * \brief Common standard library utilities.
 *
 * Copyright (c) 2013 PT Hanindo Automation Solutions. All rights reserved.
 *
 */

#ifndef MYSTDLIB_H_
#define MYSTDLIB_H_

#include <stdint.h>

/** \brief Convert unsigned char value to ascii
 *
 * \param _val		Value to be converted.
 * \param _string	Pointer to buffer where ascii result stored.
 * \param _radix	Radix of conversion.
 *
 */
extern void mylib_uint8_to_ascii(uint8_t _val, char *_string, uint8_t _radix);

/** \brief Convert unsigned short value to ascii
 *
 * \param _val		Value to be converted.
 * \param _string	Pointer to buffer where ascii result stored.
 * \param _radix	Radix of conversion.
 *
 */
extern void mylib_uint16_to_ascii(uint16_t _val, char *_string, uint8_t _radix);

/** \brief Convert unsigned long value to ascii
 *
 * \param _val		Value to be converted.
 * \param _string	Pointer to buffer where ascii result stored.
 * \param _radix	Radix of conversion.
 *
 */
extern void mylib_uint32_to_ascii(uint32_t _val, char *_string, uint8_t _radix);


#endif /* MYSTDLIB_H_ */
